# $OpenBSD: Makefile,v 1.4 2015/08/25 13:18:25 sthen Exp $

COMMENT =	console-based 52-card solitare game
DISTNAME =	bluemoon-2.12
CATEGORIES =	games
REVISION =	0

HOMEPAGE =	http://www.catb.org/~esr/bluemoon/

# BSD
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB += c ncurses

MASTER_SITES =	http://www.catb.org/~esr/bluemoon/

RUN_DEPENDS =	devel/desktop-file-utils

MAKE_FLAGS =	CC="${CC}" CFLAGS="${CFLAGS}"

ALL_TARGET =	bluemoon

NO_TEST =	Yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bluemoon ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/bluemoon.6 ${PREFIX}/man/man6
	${INSTALL_DATA_DIR} ${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKSRC}/bluemoon.desktop ${PREFIX}/share/applications/
	${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
	${INSTALL_DATA} ${WRKSRC}/bluemoon.png ${PREFIX}/share/pixmaps

.include <bsd.port.mk>
